<?php 
$translate = new Front_Model_Translate();
$model = new Administrator_Model_Product_View();
$info = $model->GetPro_catInfo($this->id);
$typeinfo = $model->GetProduct_type($info['type']);
$storeinfo = $model->GetProduct_type($typeinfo['store']);
?>
<div class="bread">
	<ul>
		<li class="first"><a href="<?php echo BASE_URL?>/">Trang chủ</a></li>
		<?php 
		echo '<li><a href="'.$translate->ProStoreLink($typeinfo['store'], $this->request['lang']).'">'.$storeinfo['name'].'</a></li>';
		echo '<li><a href="'.$translate->ProTypeLink($info['type'], $this->request['lang']).'">'.$typeinfo['name'].'</a></li>';
		echo '<li>'.$info['name'].'</li>';
		?>
	</ul>
</div>
<div class="content">
	<div class="product">
<?php foreach ($model->GetAllProductByCatPage($this->id, $this->page, $this->psize) as $value) {
	echo '<div class="item">';
		echo '<a href="'.$translate->ProdetailsLink($value['id'], $this->request['lang']).'"><img src="'.$model->ImageUrl('product', $value['image']).'">'.$value['name'].'</a>';
		echo '<div class="intro">';
		$curinfo = $model->GetPro_curInfo($value['currency']);	
			echo '<span class="price">'.$model->FormatFloatNumber($value['price']).'</span>';
			echo '<span class="curr">'.$curinfo['name'].'</span>';
		echo '</div>';
	echo '</div>';
} 
?>	
	</div>
</div><!-- end content -->
<div class="sidebar">
<?php echo $this->blksupport($this->request,$this->dirImg)?>
<?php echo $this->blkadv($this->request,$this->dirImg,"right")?>
<?php echo $this->blktopproduct($this->request,BASE_URL.'/public/images/product')?>
<?php echo $this->blkadv($this->request,$this->dirImg,"rightbot")?>
</div><!-- end sidebar -->
<div class="pay"><img src="<?php echo $this->dirImg?>/pay.png"></div>